<header class="header white-bg">
    <div class="sidebar-toggle-box">
        <div data-original-title="菜单开关" data-placement="right" class="icon-reorder tooltips"></div>
    </div>
    <!--logo start-->
    <a href="<?php echo Yii::app()->createUrl("index/index") ?>" class="logo"><span>美泰科仪</span><span style="font-size:12px;color:#000;"> <?php if($_SERVER['SERVER_PORT'] != 80){echo 'v '.Yii::app()->params['version'].' TEST';}else{echo 'v '.Yii::app()->params['version'];}?></span></a>
    <!--logo end-->
    <div class="nav notify-row" id="top_menu">

        <ul class="nav top-menu">  
            <!-- tools start -->
        </ul>
        <!--  notification end -->
    </div>
    <div class="top-nav ">
        <!--search & user info start-->
        <ul class="nav pull-right top-menu">
            <!-- user login dropdown start-->
            <?php if( !Yii::app()->user->isGuest) { ?>
             <li class="dropdown">
                <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0);">
                     <img alt="" src="<?php echo (Yii::app()->request->baseUrl . "/img/avatar-man.jpg"); ?>">
                    <span class="username"><?php echo Yii::app()->user->username; ?>
                        <span class="usercompany"></span><br/>
                        
                    </span>
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu extended logout">
                    <div class="log-arrow-up"></div>
                    <li><a href="<?php echo Yii::app()->createUrl("profile") ?>"><i class=" icon-suitcase"></i> 个人信息</a></li>
                    <li><a href="<?php echo Yii::app()->createUrl("profile") ?>"><i class="icon-cog"></i> 修改密码</a></li>
                    <li><a href="#"><i class="icon-bell-alt"></i> 通知中心</a></li>
                    <li><a href="<?php echo Yii::app()->user->isGuest ? "javascript:;" : Yii::app()->createUrl("site/logout") ?>"><i class="icon-key"></i> 退出登录</a>
                    </li>
                </ul>
            </li>
            <?php } ?>
            <!-- user login dropdown end -->
        </ul>
        <!--search & user info end-->
    </div>
</header>

